package Classloader;
/*
Classloader中的两个方法
      static ClassLoader getSystemClassLoader ():返回用于委派的系统类加载器
      ClassLoader getParent ():返回父类加载器进行委派
 */
public class ClassloaderDemo {
    public static void main(String[] args) {
        //static ClassLoader getSystemClassLoader ():返回用于委派的系统类加载器
        ClassLoader c = ClassLoader.getSystemClassLoader();
        System.out.println(c);//AppClassLoader

        //ClassLoader getParent ():返回父类加载器进行委派
        ClassLoader c2=c.getParent();
        System.out.println(c2);//ExtClassLoader

        ClassLoader c3 = c2.getParent();
        System.out.println(c3);//null
    }
}